package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.StroageMapper;
import com.entity.Stroage;
import com.entity.StroageExample;
import com.service.StroageService;
/**
 * 库存信息备用表
 * @author huyongzj
 *
 */
@Service
public class StroageServiceImpl implements StroageService {
	@Autowired
	private StroageMapper stroageMapper;

	@Override
	public int deleteByPrimaryKey(Long stkId) {
		// TODO Auto-generated method stub
		return stroageMapper.deleteByPrimaryKey(stkId);
	}

	@Override
	public int insert(Stroage record) {
		// TODO Auto-generated method stub
		return stroageMapper.insert(record);
	}

	@Override
	public int insertSelective(Stroage record) {
		// TODO Auto-generated method stub
		return stroageMapper.insertSelective(record);
	}

	@Override
	public List<Stroage> selectByExample(StroageExample example) {
		// TODO Auto-generated method stub
		return stroageMapper.selectByExample(example);
	}

	@Override
	public Stroage selectByPrimaryKey(Long stkId) {
		// TODO Auto-generated method stub
		return stroageMapper.selectByPrimaryKey(stkId);
	}

	@Override
	public int updateByPrimaryKeySelective(Stroage record) {
		// TODO Auto-generated method stub
		return stroageMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Stroage record) {
		// TODO Auto-generated method stub
		return stroageMapper.updateByPrimaryKey(record);
	}

}
